package com.yeping.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yeping.domain.ResponseResult;
import com.yeping.domain.dto.AddArticleDto;
import com.yeping.domain.entity.Article;

import java.util.List;

public interface ArticalService extends IService<Article> {
    ResponseResult hotArticleList();

    ResponseResult articleList(Integer pageNum, Integer pageSize, Long categoryId, String title,String isForum);

    ResponseResult getArticalDetail(Long id);

    ResponseResult updateViewCount(Long id);

    ResponseResult add(AddArticleDto article);

    ResponseResult articleAll(String isForum,Long categoryId,String title);

    ResponseResult seacherArtical(String keyword);

    ResponseResult updateLike(Article article);


    ResponseResult updateArticle(Article article);


    ResponseResult deleteArticle(Long articleId);

    ResponseResult delBatchUser(List<Long> ids);

    ResponseResult getTags(Long articleId);
}
